'use strict';
// 实例化数据库的操作
const db = uniCloud.database();
// 创建数据库的连接
const connect = db.collection("lunbo");
// 返回的结果内容
let res = null;
exports.main = async (e, context) => {
	switch (e.methods) {
		case "get":
			res = await connect.where({}).get();
			break;
		default:
			break;
	};
	return res;
};
